<include file="Public/header"/>

<div id="app">
    <!-- sidebar -->
    <include file="Public/left"/>
    <!-- / sidebar -->
    <div class="app-content">
        <!-- start: TOP NAVBAR -->
        <include file="Public/headernav"/>
        <!-- end: TOP NAVBAR -->
        <div class="main-content">
            <div class="wrap-content container" id="container">
                <!-- start: PAGE TITLE -->
                <section id="page-title">
                    <div class="row">
                        <div class="col-sm-8">
                            <h1 class="mainTitle">文章管理列表</h1>
                        </div>
                        <nav id="cl-effect-10" class="links cl-effect-10">
                            <a data-hover="新增" href="{:U('admin/Usernotice/notice_edit')}"><span>新增</span></a>

                        </nav>
                        <!-- <ol class="breadcrumb">
                            <li>
                                <span>Pages</span>
                            </li>
                            <li class="active">
                                <span>Blank Page</span>
                            </li>
                        </ol> -->
                    </div>
                </section>
                <!-- end: PAGE TITLE -->
                <!-- start: YOUR CONTENT HERE -->
                <style type="text/css">
                    .class_hidden {
                        display: none;
                    }

                    .panel-body {
                        padding: 5px;
                    }

                    .panel-heading {
                        padding: 5px;
                        min-height: 25px;
                    }
                </style>
                <div class="row">
                    <div class="col-lg-12 col-md-12 margin-top-20">
                        <div class="panel panel-white">
                            <div class="panel-heading">
                                <h5 class="panel-title">筛选</h5>
                            </div>
                            <form role="form" class="form-inline">
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label for="title" class="sr-only">
                                            文章标题
                                        </label>
                                        <input type="text" name="title" id="title"
                                               placeholder="文章标题" class="form-control">
                                    </div>
                                    <div class="form-group  ">
                                        <button class="btn btn-primary" type="submit">
                                            提交
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <table class="table table-hover" id="sample-table-1">
                    <thead>
                    <tr>
                        <th class="center">#</th>
                        <th>标题</th>
                        <th>作者</th>
                        <th>发布时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="data['list']" id="vo">
                        <tr>
                            <td class="center">#</td>
                            <td>
                                <a data-toggle="tooltip" data-original-title="查看" target="_blank" href="{:U('wap/usernotice/notice_detail')}?id={$vo.id}">{$vo.title}</a>
                            </td>
                            <td>{$vo.author}</td>
                            <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
                            <th><a href="{:U("Admin/usernotice/notice_edit",array('id'=>$vo['id']))}"
                                class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip"
                                data-original-title="编辑"><i class="fa fa-pencil"></i></a>
                                <a href="{:U("Admin/usernotice/notice_del",array('id'=>$vo['id']))}" class="btn
                                btn-transparent btn-xs tooltips" tooltip-placement="top" data-toggle="tooltip"
                                data-original-title="删除"><i class="fa fa-times fa fa-white"
                                                            onclick="return confirm('确定删除该数据？')"></i></a></th>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                <div class="col-md-12 pages" align="center">{$data['page']|default='暂无数据'}</div>


                <!-- end: YOUR CONTENT HERE -->
            </div>
        </div>
    </div>
    <!--  FOOTER and SETTINGS -->

    <include file="Public/footer"/>
    <!-- end: FOOTER -->
    <!-- start: OFF-SIDEBAR -->

    <!-- end: OFF-SIDEBAR -->
</div>
<!-- start: MAIN JAVASCRIPTS -->

<include file="Public/javascript"/>

</body>
</html>
